package com.sxt;

import java.awt.*;

/**
 * @author 谭梦寻
 * @version 1.1
 * 石块类
 */
public class Rock extends Object{
//    无参构造
    Rock() {
        this.x = (int)(Math.random()*700);//防止金块生成在窗体上
        this.y = (int)(Math.random()*550 +300);//防止金块生成在天上
        this.width = 71;
        this.height = 71;
        this.img = Toolkit.getDefaultToolkit().getImage("img/rock1.png");
        this.m = 120;//石头的质量
        //    标记是否能移动
        this.flag = false;
        this.count = 1;
        this.type = 2;
    }

}
